package hy.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class A {
    @Autowired
    AccountServiceImpl service;

    public void a(String from, String to, Double money){
        //1
        //2
        service.transfer(from,to,money);

        //3
        //4
    }
}